<template>
  <el-pagination
      style="margin-left: 30px;  margin-top: 10px; text-align: right"
      background
      layout="total, prev, pager, next"
      :current-page="currentPage"
      :page-size="pageSize"
      :total="total"
      @current-change="handleCurrentChange">
  </el-pagination>
</template>

<script>
export default {
  name: "page",
  data(){
    return{
    }
  },
  methods:{
    handleCurrentChange(val){
      this.$emit('handleChange', val)
    }
  },
  props:['currentPage','pageSize','total'],
  mounted() {
    // console.log('page里的total',this.total);
    // console.log('page里的currentPage',this.currentPage);
    // console.log('page里的pageSize',this.pageSize);
  }
}
</script>

<style scoped>

</style>
